package com.smallA.association.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 权限角色类
 *
 * @author 君未洋
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {
    private int id;
    private String roleName;

    public int getId() {
        return id;
    }

    @JsonIgnore
    public String getRoleName() {
        return roleName;
    }

    @JsonIgnore
    public String getContext() {
        return context;
    }

    private String context;
    private List<Access> accesses;
}
